<?php

require_once("./lib/pluginbase.php");

class ItemsPlugin extends PluginBase
{
	function processChatCommand($name, $cmd, $args)
	{
		switch ($cmd)
		{
			case "!tools":
				$this->give($name, 277, 1);
				$this->give($name, 278, 1);
				$this->give($name, 276, 1);
				$this->give($name, 279, 1);
				$this->give($name, 293, 1);
				break;
			case "!boat":
				$this->give($name, 333, 1);
				break;
			case "!stone":
				$this->give($name, "1", "64");
				break;
			case "!cobble":
				$this->give($name, "4", "64");
				break;
			case "!torches":
				$this->give($name, "50", "64");
				break;
			case "!wood":
				$this->give($name, "17", "64");
				break;
			case "!music":
				$this->give($name, 84, 1);
				$this->give($name, 2256, 1);
				$this->give($name, 2257, 1);
				break;
			case "!glass":
				$this->give($name, "20", "64");
				break;
			case "!ladder":
				$this->give($name, "65", "10");
				break;
			case "!brick":
				$this->give($name, "45", "64");
				break;
			case "!iron":
				$this->give($name, "265", "6");
				break;
		}
	}
}

registerPlugin("items", new ItemsPlugin);


